package com.example.demo.factory;

/**
 * @author : tx
 * @date : Created in 2024-04-12 9:58
 * @description :
 */
public class PhoneFactory implements ProductFactory{

    public Product get(String type) {

        if (type.equals("Phone")){
            return new Phone();
        }else {
            return new IPhone();
        }


    }
}
